<template>
	<view class="c-container no-border">
		<!-- 轮播区域 -->
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item>
				<view class="swiper-item">11111111111</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">22222222222</view>
			</swiper-item>
		</swiper>
		<!-- 便捷操作 -->
		<tabMenu />
		<!-- 菜单项 -->
		<actionMenu :menuTitle="'待办'" :menuIcon="toDoIcon" :menuItems="toDoMenuList" />
		<actionMenu :menuTitle="'客资管理'" :menuItems="customerMenuList" />
		<actionMenu :menuTitle="'订单管理'" :menuItems="orderMenuList" />
		<actionMenu :menuTitle="'审批管理'" :menuItems="auditMenuList" />
		<money :moneyData="moneyData" />
		<sale :menuTitle="'销售日报'" :menuIcon="toDoIcon" :menuItems="saleMenuList"/>
	</view>
</template>

<script>
	import tabMenu from './components/tabMenu/tabMenu.vue'
	import actionMenu from './components/actionMenu/actionMenu.vue'
	import money from './components/money/money.vue'
	import sale from './components/sale/sale.vue'
	export default {
		components: {
			tabMenu,
			actionMenu,
			money,
			sale
		},
		data() {
			return {
				// 代办菜单列表
				toDoMenuList: [
					{
						title: '待跟进',
						num: 3
					},
					{
						title: '待审批',
						num: 10
					},
					{
						title: '待结算',
						num: 6
					},
					{
						title: '提交利润',
						num: 50
					},
				],
				toDoIcon: '../../static/add.png',
				// 客资菜单列表
				customerMenuList:[
					{title: '我的客资'},
					{title: '添加客资'},
					{title: '客资公海'},
					{title: '客资查重'}
				],
				// 订单菜单列表
				orderMenuList: [
					{title: '我的订单'},
					{title: '结算单'},
					{title: '退单'},
					{title: '废单'}
				],
				// 审核菜单列表
				auditMenuList: [
					{
						title: '订单审批',
						num: 6
					},
					{
						title: '结算单审批',
						num: 10
					},
					{
						title: '毛利审批',
						num: 19
					},
				],
				// 应收应付数据
				moneyData: {
					incomeNum: 33,
					incomeTotals: 30000,
					paymentNum: 26,
					paymentTotals: 123456
				},
				// 销售日报菜单列表
				saleMenuList:[
					{
						title: '今日新增',
						num: 80
					},
					{
						title: '回访客户',
						num: 20
					},
					{
						title: '订单',
						num: 3
					},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
	uni-page-body {
		padding: 0;
	}
</style>
